package com.example.warehouse.sys.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AddNewUserParam implements Serializable {
    @NotNull(message = "请输入用户名")
    @ApiModelProperty(value = "用户名", required = true)
    private String name;

    @NotNull(message = "请输入密码")
    @ApiModelProperty(value = "密码", required = true)
    private String password;

    @NotNull(message = "请输入昵称")
    @ApiModelProperty(value = "昵称", required = true)
    private String nickname;

    @ApiModelProperty(value = "用户地址")
    private String address;

    @ApiModelProperty(value = "手机号码")
    private String phone;

    @ApiModelProperty(value = "性别")
    private Integer sex;

    @ApiModelProperty(value = "用户备注")
    private String description;

    @ApiModelProperty(value = "部门")
    private Long deptId;

    @ApiModelProperty(value = "领导")
    private Long managementId;

    @ApiModelProperty(value = "是否启用")
    private Integer enable;

    @ApiModelProperty(value = "排序")
    private Integer sort;

}
